﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;
using KPIS.GERP.GHRMS.IDAL;
using KPIS.GERP.GHRMS.DALFactory;

namespace KPIS.GERP.GHRMS.BLL
{
    public class PositionExtraBLL
    {
        private static readonly PositionExtraDAL DAL = new PositionExtraDAL();

        public DataSet LoadPositionExtra(Nullable<int> Sequence, Nullable<int> PosSeq, Nullable<int> ClassSeq)
        {
            return DAL.LoadPositionExtra(Sequence, PosSeq, ClassSeq);
        }
        public void Insert(int PosSeq, int ClassSeq, int ExtSeq, Double Amount, string Remarks, int CreatedBy)
        {
            try
            {
                DAL.Insert(PosSeq, ClassSeq, ExtSeq, Amount, Remarks, CreatedBy);
            }
            catch
            {
                throw new Exception("");
            }

        }
        public void Update(int Sequence, int ClassSeq, int ExtSeq, Double Amount, string Remarks, int UpdatedBy)
        {
            try
            {
                DAL.Update(Sequence, ClassSeq, ExtSeq, Amount, Remarks, UpdatedBy);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Delete(int Sequence, int UpdatedBy)
        {
            try
            {
                DAL.Delete(Sequence, UpdatedBy);
            }
            catch
            {
                throw new Exception("");
            }
        }
    }
}
